﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace FacebookApp.SharedLibraries
{
    public class Constants
    {
        public class Facebook_Option
        {
            /// <summary>
            /// /{0}
            /// </summary>
            public const String _x = "/{0}";

            /// <summary>
            /// /{0}{1}
            /// </summary>
            public const String _xy = "/{0}{1}";

            /// <summary>
            /// /{0}/{1}{2}
            /// </summary>
            public const String _x_yz = "/{0}/{1}{2}";

            /// <summary>
            /// /{0}/{1}/{2}
            /// </summary>
            public const String _x_y_z = "/{0}/{1}/{2}";

            /// <summary>
            /// /{0}_{1}/{2}{3}
            /// </summary>
            public const String _x_y_z_t = "/{0}_{1}/{2}{3}";



            public const String _a = "/{0}";
            public const String _ab = "/{0}{1}";
            public const String _abc = "/{0}{1}{2}";
            public const String _abcd = "/{0}{1}{2}{3}";

            public const String _a_b = "/{0}/{1}";
            public const String _a_bc = "/{0}/{1}{2}";
            public const String _a_bcd = "/{0}/{1}{2}{3}";

            public const String _a__b = "/{0}_{1}";
            public const String _a__bc = "/{0}_{1}{2}";
            public const String _a__bcd = "/{0}_{1}{2}{3}";
            public const String _a__b_cd = "/{0}_{1}/{2}{3}";
            public const String _a__b__c_de = "/{0}_{1}_{2}/{3}{4}";

            public const String _ab_c = "/{0}{1}/{2}";
            public const String _ab_cd = "/{0}{1}/{2}{3}";

            public const String _ab__c = "/{0}{1}_{2}";
            public const String _ab__cd = "/{0}{1}_{2}{3}";

            public const String _abc_d = "/{0}{1}{2}/{3}";

            public const String _abc__d = "/{0}{1}{2}_{3}";
        }

        public class Option_tid
        {
            public const Int16 user_page = 1;
            public const Int16 user_group = 2;
            public const Int16 group_page = 3;
        }

        public class Option_iTypeSearch
        {
            public const Int16 get_all_page_scan = 1;
        }

        public class Facebook_Param
        {
            public const String me = "me";
            public const String user_param = "?fields=id,first_name,last_name,link,middle_name,name,timezone,updated_time,verified";
            public const String user_param_ex = "?fields=id,link,name,accounts";
            public const String user_accounts = "accounts";
            public const String page_param = "?fields=id,about,birthday,can_post,category,checkins,country_page_likes,cover,description,has_added_app,is_community_page,is_published,new_like_count,likes,link,name,name_with_location_descriptor,offer_eligible,parking,talking_about_count,unread_message_count,unread_notif_count,unseen_message_count,username,website,were_here_count";//promotion_eligible
            public const String group_param = "?fields=description,email,icon,name,privacy,updated_time,id";

            public const String feed = "posts";
            public const String feed_param = "?fields=parent_id,object_id,type&limit=100";

            public const String status_param = "?fields=id,from,message,updated_time";
            public const String photo_param = "?fields=id,created_time,from,height,icon,link,picture,source,updated_time,width";
            public const String video_param = "?fields=description,updated_time,created_time,from,icon,name,picture,place,source,id";
            public const String link_param = "?fields=created_time,message,id";
            public const String event_param = "?fields=created_time,story,id";
            public const String offer_param = "?fields=created_time,message,story,id";
            public const String note_param = "?fields=created_time,message,story,id,from";

            public const String likes = "likes";
            public const String likes_param = "?fields=can_post,id,link,name,profile_type,username,pic,pic_crop,pic_large,pic_small,pic_square,picture&limit=100";

            public const String comments = "comments";
            public const String comments_param = "?fields=created_time,from,message,can_remove,like_count,message_tags,user_likes,id,comment_count&limit=100";

            /// <summary>
            /// {0}, {1}, {2}
            /// </summary>
            public const String token = "oauth/access_token?grant_type=fb_exchange_token&client_secret={0}&client_id={1}&fb_exchange_token={2}";
        }

        public class Request_iStatus
        {
            public const Int16 received = 0;    //đã nhận
            public const Int16 processing = 1;  //đang xử lý
            public const Int16 duplicate = 2;
            public const Int16 error = 6;
            public const Int16 success = 9;
        }
    }
}
